/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entidades;

import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Entity;
import javax.validation.constraints.Size;

/**
 *
 * @author a20091bsi0192
 */
@Entity
public class Hardware extends Product implements Serializable {
    @Size (max= 50) 
    private String assembly;

    public String getAssembly() {
        return assembly;
    }

    public void setAssembly(String assembly) {
        this.assembly = assembly;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 47 * hash + Objects.hashCode(this.assembly);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Hardware other = (Hardware) obj;
        if (!Objects.equals(this.assembly, other.assembly)) {
            return false;
        }
        return true;
    }
    
    
}
